<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>JSON对象创建</title>
	</head>
	<body>
		<h1>JSON对象创建</h1>
		<script>
			person = {
				name:'Jack',
				age:20,
				addr:{
					homeADDr:'太原迎泽',
					workADDr:'太原小店'
				}
			};
			alert(person.addr.homeADDr);
			alert(person["age"]);
			students = [
			{name:'wzj',
			 age:43
			},
			{name:'zhaolaoshi',
			 age:40
			}
			];
			alert(students[1].age);
		</script>
	</body>
</html>